LAB4

1.1

downsampled:

image.png

upsampled:

image-2.png

Signal sin - Acos(2pi10t) + 2Acos(2pi17t)+3Acos(2pi5t)

Row from image down sample 2,4,8,17

My signal can see aliasing

Upsample ZOH, FOH, linear, cubic and sinc

image.png

1.2

Implament quantize:

All plot: uint sin 256 levels, double sin 256 levels, row from image and (uint sin 256 levels) /4

2. Decimation and iterpolation:

2.1.3

a. Downsample factors = [2, 4, 10]:

For a 1: 2 aspect ratio it will be difficult to see the differences but it will be enough to take a look at the size of the matrix that represents the image to understand that we have shrunk it while losing information along the way of course. For decimation in a ratio of 1: 4 and of course for decimation in a ratio of 1:10 we can see the effects of matrix contraction.

b-c. iterpolation bilinear and ZOH for image

2.2.1 quantization quant_levels = [2, 4, 8, 16, 32, 64, 128] to skull image

Equation of decimation and interpolation to the 3 different methods:

image.png

sinc:

image-2.png

2.2.2-3 in matlab